﻿using UnityEngine;

public static class MouseHelper
{
    public static bool MouseDown(this Rect rect)
    {
        return Event.current.type == EventType.MouseDown && rect.Contains(Event.current.mousePosition);
    }
}
